import request from '../index';

/**
 * 单文件上传
 * @param data 
 * @returns 
 */
export const commonUpload = (data: any) =>
    request({
        url: '/common/upload',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    });